Benjamin Otte [Fri, 11 Feb 2011 22:53:48 +0000 (23:53 +0100)]
gtk: Fix warnings for dnd code without XInput
Benjamin Otte [Fri, 11 Feb 2011 22:53:14 +0000 (23:53 +0100)]
x11: Make the device manager struct actually subclass the correct device
Benjamin Otte [Wed, 9 Feb 2011 13:40:04 +0000 (14:40 +0100)]
stylecontext: Use the common approach for priate pointers
Has two advantages:
1) consistency
2) "print *context->priv" actually works in gdb
Benjamin Otte [Thu, 10 Feb 2011 12:58:07 +0000 (13:58 +0100)]
icontheme: constify arguments to gtk_icon_theme_load_symbolic()
Benjamin Otte [Fri, 11 Feb 2011 22:19:25 +0000 (23:19 +0100)]
x11: Fix build without Xinput
Missing ifdefs
Colin Walters [Fri, 11 Feb 2011 17:39:07 +0000 (12:39 -0500)]
docs: Link to all versions of both GTK3 and GTK2
Now that library supports both cleanly, fix the links so that
the user can go from the online doc to any version better.
Chun-wei Fan [Fri, 11 Feb 2011 10:41:22 +0000 (18:41 +0800)]
Win32 Visual C++ Support: Some more clean-ups
Update gtk+.vsprops...
Since gdkconfig.h should now reside in gdk/, there
is no longer need to create a lib/gtk-3.0/include folder.
Chun-wei Fan [Fri, 11 Feb 2011 10:05:16 +0000 (18:05 +0800)]
gdk/gdkconfig.h.win32: Make it more up-to-date
Make this pre-configured file to be more like the one used by the existing
X11 version, but using GDK_WINDOWING_WIN32 for obvious reasons.
Michael Natterer [Fri, 11 Feb 2011 09:35:25 +0000 (10:35 +0100)]
gtk: don't send BUTTON_RELEASE to unrealized widgets
which happened when the source widget was hidden or destroyed while a
drag was going on, like when dragging from a popup that got a grab
broken as result of the dnd operation.
Chun-wei Fan [Fri, 11 Feb 2011 09:45:32 +0000 (17:45 +0800)]
Visual C++ support: Fix the gdk-win32 Project
Apparently I previously had one of the source files wrong here...
Update this to reflect the correct file.
My fault for not seeing this earlier-sorry. DOH.
Matthias Clasen [Thu, 10 Feb 2011 20:27:54 +0000 (15:27 -0500)]
Bump version to 3.0.1
Matthias Clasen [Thu, 10 Feb 2011 20:02:33 +0000 (15:02 -0500)]
Correct sonames appearing in the docs
Matthias Clasen [Thu, 10 Feb 2011 20:00:20 +0000 (15:00 -0500)]
Mention library soname change
Matthias Clasen [Thu, 10 Feb 2011 19:41:02 +0000 (14:41 -0500)]
Bump the version to 3.0.0
At the same time, change the library sonames for -3.0 to just -3.
This is necessary since the 2.99 releases installed libraries like
libgtk-3.0.so.0.9903.0, and we want to prevent the library version
number from jumping back. So 3.0 will have libgtk-3.so.0.0.0.
Matthias Clasen [Thu, 10 Feb 2011 19:37:31 +0000 (14:37 -0500)]
Minor formatting tweak
Matthias Clasen [Thu, 10 Feb 2011 19:31:31 +0000 (14:31 -0500)]
Remove a long-unsupported script that does nothing
Murray Cumming [Thu, 10 Feb 2011 09:02:06 +0000 (10:02 +0100)]
Add "extern C" declarations around AppChooser headers.
This is necessary to allow linking from code compiled as C++.
Matthias Clasen [Wed, 9 Feb 2011 22:32:05 +0000 (17:32 -0500)]
Don't try to modify readonly strings
This was an oversight in the recent accel label improvement.
When we get an untranslated string back from gettext(), it is
not ok to replace '_' by ' ' in-place. Instead, do it while
appending to the GString.
https://bugzilla.gnome.org/show_bug.cgi?id=641912
Matthias Clasen [Wed, 9 Feb 2011 21:54:19 +0000 (16:54 -0500)]
Make online references point to the right place
Matthias Clasen [Wed, 9 Feb 2011 21:44:19 +0000 (16:44 -0500)]
Change the title of the GDK docs to mention '3'
This is necessary in preparation for having 2.x and 3 docs
listed next to each other on library.gnome.org.
Carlos Garnacho [Wed, 9 Feb 2011 19:08:35 +0000 (20:08 +0100)]
Change required glib version from "2.28" to "2.28.0"
Fixes the recent configure error:
checking for GLIB - version >= 2.28... 2.28, bad version string
introduced by
95446c311
Carlos Garnacho [Wed, 9 Feb 2011 16:00:49 +0000 (17:00 +0100)]
Avoid the need for cairo_push_group() in gtk_render_background()
This operation is potentially expensive, so the code has been
refurbished so avoid the cases it was needed for. Antialiased
cairo_clip() has been also reduced to transitions with surface
patterns involved.
Tristan Van Berkom [Wed, 9 Feb 2011 19:04:31 +0000 (04:04 +0900)]
Added padding to GtkTextLineDisplay struct for an addition of GdkRGBA pointer comming soon.
Javier Jardón [Tue, 8 Feb 2011 19:02:29 +0000 (19:02 +0000)]
configure.ac: Depend on stable versions of other libraries
Matthias Clasen [Wed, 9 Feb 2011 14:25:31 +0000 (09:25 -0500)]
Quell another warning
Matthias Clasen [Wed, 9 Feb 2011 14:01:16 +0000 (09:01 -0500)]
Add some more info for desktop app info
Small gotchas that can easily be avoided.
Matthias Clasen [Wed, 9 Feb 2011 07:43:07 +0000 (02:43 -0500)]
More GDK documentation tweaks
Garrett Regier [Wed, 9 Feb 2011 01:36:16 +0000 (17:36 -0800)]
Matthias Clasen [Wed, 9 Feb 2011 06:32:24 +0000 (01:32 -0500)]
Give the GDK docs some love
Reorganize some sections, drop the largely redundant multihead
section, add some more information about multiple backends.
Matthias Clasen [Wed, 9 Feb 2011 05:21:37 +0000 (00:21 -0500)]
Documentation tweaks
Matthias Clasen [Wed, 9 Feb 2011 04:19:47 +0000 (23:19 -0500)]
Remove no-longer exported symbols from the symbol list
Matthias Clasen [Wed, 9 Feb 2011 04:19:21 +0000 (23:19 -0500)]
Don't export GtkModifierStyle symbols
This is not public API, so don't export it.
Matthias Clasen [Wed, 9 Feb 2011 04:18:22 +0000 (23:18 -0500)]
Don't export gtk_cell_area_box_init_groups
That function can't be meant to be public, since it take
a GtkCellAreaBoxContext argument, which is not a public type.
Matthias Clasen [Wed, 9 Feb 2011 04:14:46 +0000 (23:14 -0500)]
Add some missing symbols to the docs
Javier Jardón [Wed, 9 Feb 2011 01:10:38 +0000 (01:10 +0000)]
README.in: Fix link to the migration guide
Matthias Clasen [Wed, 9 Feb 2011 01:00:27 +0000 (20:00 -0500)]
Remove annotation that breaks the docs
Before adding annotations, please check that gtk-doc can handle
them. Else they will be stripped out again.
Matthias Clasen [Wed, 9 Feb 2011 00:07:46 +0000 (19:07 -0500)]
Add links to the migration guide
Matthias Clasen [Tue, 8 Feb 2011 23:40:08 +0000 (18:40 -0500)]
Define the required introspection version in configure.ac
Matthias Clasen [Tue, 8 Feb 2011 23:32:45 +0000 (18:32 -0500)]
Update NEWS
Daniel Mustieles [Tue, 8 Feb 2011 20:01:05 +0000 (21:01 +0100)]
Updated Spanish translation
Matthias Clasen [Tue, 8 Feb 2011 18:49:16 +0000 (13:49 -0500)]
Extend the mixed-dependency check to modules as well
This helps prevent accidents with GTK_PATH.
Matthias Clasen [Tue, 8 Feb 2011 18:09:52 +0000 (13:09 -0500)]
Add warnings about environment variables
These variables all get read by GTK 2.x as well, which makes
them dangerous at best.
Johan Dahlin [Tue, 8 Feb 2011 15:30:24 +0000 (13:30 -0200)]
introspection: Remove redundant include
Gdk-3.0 is already included above via --include-uninstalled, so
don't also specify it in INCLUDES. Doing so breaks if it isn't
installed already, since we try to find the gdk-3.0.pc.
Johan Dahlin [Tue, 8 Feb 2011 15:29:57 +0000 (13:29 -0200)]
Rename time to time_ to avoid a scanner warning
Johan Dahlin [Tue, 8 Feb 2011 15:20:11 +0000 (13:20 -0200)]
Remove tab as it confused g-ir-scanner
Colin Walters [Tue, 8 Feb 2011 15:16:55 +0000 (10:16 -0500)]
introspection: Remove redundant include
Gdk-3.0 is already included above via --include-uninstalled, so
don't also specify it in INCLUDES. Doing so breaks if it isn't
installed already, since we try to find the gdk-3.0.pc.
Benjamin Otte [Tue, 8 Feb 2011 07:55:25 +0000 (08:55 +0100)]
API: image: Move private struct definitions into private header
They weren't privatized because the dnd code used them, too. But a
private header can allow the dnd code to be nasty, so go dnd code!
Benjamin Otte [Tue, 8 Feb 2011 07:51:17 +0000 (08:51 +0100)]
gdk: Fix typo in documentation string
Carlos Garnacho [Mon, 7 Feb 2011 20:20:54 +0000 (21:20 +0100)]
doc: Add a note about prioritization of GtkStyleProviders
It was unclear in the docs what happened if
gtk_style_context_add_provider() and
gtk_style_context_add_provider_for_screen()
were used with the same priority.
Matthias Clasen [Tue, 8 Feb 2011 01:37:09 +0000 (20:37 -0500)]
Update the context direction when emitting ::direction-changed
This makes the flipping example in testgtk work as expected again.
https://bugzilla.gnome.org/show_bug.cgi?id=632775
Matthias Clasen [Tue, 8 Feb 2011 01:36:46 +0000 (20:36 -0500)]
Set the correct initial value for the direction property
Carlos Garnacho [Mon, 7 Feb 2011 18:56:17 +0000 (19:56 +0100)]
Fix color style properties lookup when the color resolution fails
The cached GValue ended up with a GtkSymbolicColor type, so
the contained value was bogus. Noticed by Mitch.
Matthias Clasen [Mon, 7 Feb 2011 16:23:43 +0000 (11:23 -0500)]
Fix problems with state propagation
Sensitivity changes were not properly propagated down the
hierarchy. There were two issues here:
a) correctly identifying when a state change request affects
sensitivity
b) not filtering out sensitivity in gtk_widget_propagate_state(),
since gtk_widget_set_sensitivity() uses that to do its work
https://bugzilla.gnome.org/show_bug.cgi?id=641431
Tristan Van Berkom [Mon, 7 Feb 2011 07:55:25 +0000 (16:55 +0900)]
Optimize queue_resize_on_widget()
Optimized GtkSizeGroup code that is invoked for every queued resize
and every request that is not previously cached by trading qdata on
widgets for 3 extra bitfields on the GtkWidgetPrivate structure.
Javier Jardón [Sat, 5 Feb 2011 17:54:02 +0000 (17:54 +0000)]
Use faster new G_VALUE_COLLECT_INIT variant instead G_VALUE_COLLECT
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=641621
Matthias Clasen [Mon, 7 Feb 2011 12:30:37 +0000 (07:30 -0500)]
Always chain up in ::style-updated
This was not handled consistently, but the default handler
does useful things, so we should always chain up.
Javier Jardón [Sun, 6 Feb 2011 22:22:19 +0000 (22:22 +0000)]
configure.ac: Remove some more obsolete macros
AC_TYPE_SIGNAL: obsolete when assuming C89 or better
AC_HEADER_SYS_WAIT: current systems are compatible with POSIX
Javier Jardón [Sun, 6 Feb 2011 01:35:42 +0000 (01:35 +0000)]
configure.ac: Use AC_COMPILE_IFELSE instead deprecated AC_TRY_COMPILE
Javier Jardón [Sun, 6 Feb 2011 00:52:37 +0000 (00:52 +0000)]
configure.ac: Use AS_HELP_STRING instead deprecated AC_HELP_STRING
Javier Jardón [Sun, 6 Feb 2011 00:38:38 +0000 (00:38 +0000)]
configure.ac: Remove some obsolescent macros
AC_C_CONST: current C compilers support const
AC_TYPE_SYGNAL: obsolete when assuming C89 or better
AC_HEADER_STDC: current systems have conforming header files
Matthias Clasen [Sun, 6 Feb 2011 19:12:05 +0000 (14:12 -0500)]
Add a testcase for state propagation problems
Kjartan Maraas [Sun, 6 Feb 2011 18:14:53 +0000 (19:14 +0100)]
Updated Norwegian bokmål translation.
Hans Breuer [Sun, 6 Feb 2011 14:05:35 +0000 (15:05 +0100)]
No more gtk_plug_*/gtk_socket_* symbols on win32
Hans Breuer [Sun, 6 Feb 2011 14:03:32 +0000 (15:03 +0100)]
win32: no more GdkNativeWindow and related changes
- replace GdkNativeWindow with HWND, remove type casts
- no more GdkDisplayClass::get_drag_protocol but GdkWindowImpl::get_drag_protocol
- remove *_client_message*()
Hans Breuer [Sun, 30 Jan 2011 21:06:52 +0000 (22:06 +0100)]
win32: msvc build update
Michael Natterer [Sun, 6 Feb 2011 13:47:58 +0000 (14:47 +0100)]
gtk: gtk_cell_renderer_get_state(): check the widget's effective sensitivity
Michael Natterer [Sun, 6 Feb 2011 13:43:55 +0000 (14:43 +0100)]
gtk: gtk_cell_renderer_get_state(): a row can be both selected and insensitive
so pull the SELECTED state flag out of the !sensitive branch. Also,
don't make FOCUSED depend on SELECTED here, it's up to the widget to
decide whether or not that is possible.
Piotr Drąg [Sun, 6 Feb 2011 13:11:57 +0000 (14:11 +0100)]
Updated Polish translation
Michael Natterer [Sun, 6 Feb 2011 12:48:42 +0000 (13:48 +0100)]
gtk: make the .trough background-color darker() as it was in GTK+ 2.x
Carlos Garnacho [Sun, 6 Feb 2011 01:52:51 +0000 (02:52 +0100)]
s/state_changed/state_flags_changed/ in GtkComboBox
Carlos Garnacho [Sun, 6 Feb 2011 01:51:20 +0000 (02:51 +0100)]
Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()
Carlos Garnacho [Sun, 6 Feb 2011 01:40:06 +0000 (02:40 +0100)]
GtkStyleContext is meant to have a GdkScreen
It is used to get the default providers, without them
the style context can't do much. A check for NULL screen
is done before any sensitive call to
gtk_style_context_set_screen(), in the hope that any widget
will open the display before doing anything related to
styling. Fixes bug #641429, reported by Bastien Nocera.
Michael Natterer [Sun, 6 Feb 2011 10:13:42 +0000 (11:13 +0100)]
gtk: bail out in render_background_internal() if the extents are <= 0
otherwise we run into scaling the cairo_t into a borken state that's
not fixable by cairo_restore().
Michael Natterer [Sat, 5 Feb 2011 22:52:19 +0000 (23:52 +0100)]
gtk: remove function gtk_entry_queue_draw() and call gtk_widget_queue_draw()
the old function was a leftover from when GtkEntry had a window
and was now invalidating the entire toplevel on each entry change.
Michael Natterer [Sat, 5 Feb 2011 22:42:37 +0000 (23:42 +0100)]
gtk: get rid of two cases of invalidating the spinbutton when not needed
Fran Diéguez [Sat, 5 Feb 2011 23:26:36 +0000 (00:26 +0100)]
Updated Galician translations
Matthias Clasen [Sat, 5 Feb 2011 16:21:21 +0000 (11:21 -0500)]
Avoid tons of warnings from stylecontext initialization without screen
This reverts part of commit
4dc9b29.
Matthias Clasen [Sat, 5 Feb 2011 07:17:00 +0000 (02:17 -0500)]
Demonstrate the problem with a workaround
Carlos Garnacho [Sat, 5 Feb 2011 12:53:04 +0000 (13:53 +0100)]
Ensure gtk_render_background()/frame() yield the same shape
On rounded boxes the background and the frame wouldn't fit in
perfectly, leaving some visual noise in the corners. This is now
gone.
Carlos Garnacho [Sat, 5 Feb 2011 12:44:30 +0000 (13:44 +0100)]
Use cairo_push_group() to mix backgrounds during transitions
It also helps remove the cairo_clip() call to achieve the rounded
shape.
Michael Natterer [Sat, 5 Feb 2011 13:10:18 +0000 (14:10 +0100)]
gtk: don't style GtkLabel:selected's color separately
or labels in selected state will not have a different color. Reviewed
by Carlos.
Matthias Clasen [Sat, 5 Feb 2011 07:03:35 +0000 (02:03 -0500)]
Don't leak a cell area context
Matthias Clasen [Sat, 5 Feb 2011 06:56:19 +0000 (01:56 -0500)]
Migration guide additions
Some information about plugs and sockets, and event filters.
Matthias Clasen [Sat, 5 Feb 2011 06:24:21 +0000 (01:24 -0500)]
Add a testcase for cell positions
Bastien Nocera [Sat, 5 Feb 2011 02:22:17 +0000 (02:22 +0000)]
gtk-demo: Use symbolic icon that exists
For the Images test.
Matthias Clasen [Sat, 5 Feb 2011 03:06:25 +0000 (22:06 -0500)]
Simple test for display-less widget creation
Matthias Clasen [Sat, 5 Feb 2011 03:01:40 +0000 (22:01 -0500)]
Don't assume a screen exists before realize()
Fix for https://bugzilla.gnome.org/show_bug.cgi?id=641429
Matthias Clasen [Sat, 5 Feb 2011 02:21:14 +0000 (21:21 -0500)]
Improve GtkApplication migration guide
As pointed out in bug 641517, the examples did not actually
do the same.
Matthias Clasen [Sat, 5 Feb 2011 02:13:56 +0000 (21:13 -0500)]
Fix a memory leak in GtkCSSProvider
Found by Felix Riemann
https://bugzilla.gnome.org/show_bug.cgi?id=641558
Matthias Clasen [Sat, 5 Feb 2011 02:08:41 +0000 (21:08 -0500)]
XI2: translate group state back into core state
This is necessary to make the key event translation work
as expected.
https://bugzilla.gnome.org/show_bug.cgi?id=641367
Matthias Clasen [Sat, 5 Feb 2011 02:01:52 +0000 (21:01 -0500)]
Pass group state to _gdk_x11_device_xi2_translate_state
This will be necessary to make groups work with XI2.
Matthias Clasen [Sat, 5 Feb 2011 01:58:41 +0000 (20:58 -0500)]
Share code to fill GdkEventKey.string
This code was duplicated between the core and XI2 device manager
implementations.
Khaled Hosny [Fri, 4 Feb 2011 22:31:14 +0000 (00:31 +0200)]
Updated Arabic translation
Matthias Clasen [Fri, 4 Feb 2011 22:18:24 +0000 (17:18 -0500)]
Add an empty English translation for properties
Otherwise the build is unhappy about en in LINGUAS
Matthias Clasen [Fri, 4 Feb 2011 20:35:44 +0000 (15:35 -0500)]
Add an English translation
Currently, this just includes translations for keysyms.
Matthias Clasen [Fri, 4 Feb 2011 20:34:36 +0000 (15:34 -0500)]
Strip XF86 prefix from untranslated keysyms
When we don't have translations, at least remove the
ugly XF86 prefix.
Matthias Clasen [Fri, 4 Feb 2011 20:33:36 +0000 (15:33 -0500)]
Add translation entries for more common keysyms
In particular, the XF86 keysyms can benefit from a translation
that strips the prefix.
Matthias Clasen [Fri, 4 Feb 2011 19:05:22 +0000 (14:05 -0500)]
Remove debug spew
Matthias Clasen [Fri, 4 Feb 2011 17:51:46 +0000 (12:51 -0500)]
XI2: don't translate button releases as scroll events
This fixes scroll-by-2 sympoms seen in combo boxes.
https://bugzilla.gnome.org/show_bug.cgi?id=639846
Javier Jardón [Fri, 4 Feb 2011 16:58:59 +0000 (16:58 +0000)]
Remove latest bits of GtkItemFactory